﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace Point2d.Graphics
{
    public class PointEntity : Entity
    {
        static int _pointRadius = 2;

        public PointEntity(GraphicsManager manager, Color color)
            : base(manager, color)
        {
        }

        public override void Draw(System.Drawing.Graphics graphics)
        {
            if (_points.Count < 0 || _points.Count > 1)
            {
                return;
            }

            DrawPoint(graphics, _points[0], _pointRadius);
        }
    }
}
